﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

using DreamCube.Foundation.Basic.Utility;

namespace DreamCube.TaobaoGJ.UI
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (!MyApp.IsExistApp(Properties.Resources.AppKey))
            {
                Application.Run(new MainForm());
            }
            else
            {
                MessageBox.Show("只能运行一个程序实例哦，请在右下角双击打开程序！", "重复打开软件提醒");
            }
        }
    }
}
